package com.six.vo;

import java.sql.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 盘点报告明细
 * 
 */
@Entity
@Table(name="WMS_T_CR_DETAILS")
public class CheckReportDetail {
	private int detailsID;// VARCHAR(16) 盘点报告明细编号
	private String detailsGoodsName;// NVARCHAR2(100) 货物名称
	private double detailsSpec;// NUMBER(30,2) 货物规格
	private int detailsLastStock;// INTEGER 最近库存
	private int detailsInput;// INTEGER 入库件数
	private int detailsOutput;// INTEGER 出库件数
	private int detailCurrent;// INTEGER 当前库存
	private Date detailsEditTime;// DATE 记录时间
	private int detailsIsDel;// SMALLINT 是否已被删除
	private CheckReport checkReport;
	
	public CheckReportDetail() {
		super();
	}
	public CheckReportDetail(int detailsID, String detailsGoodsName,
			double detailsSpec, int detailsLastStock, int detailsInput,
			int detailsOutput, int detailCurrent, Date detailsEditTime,
			int detailsIsDel, CheckReport checkReport) {
		super();
		this.detailsID = detailsID;
		this.detailsGoodsName = detailsGoodsName;
		this.detailsSpec = detailsSpec;
		this.detailsLastStock = detailsLastStock;
		this.detailsInput = detailsInput;
		this.detailsOutput = detailsOutput;
		this.detailCurrent = detailCurrent;
		this.detailsEditTime = detailsEditTime;
		this.detailsIsDel = detailsIsDel;
		this.checkReport = checkReport;
	}
	@Id
	@GeneratedValue
	public int getDetailsID() {
		return detailsID;
	}
	public void setDetailsID(int detailsID) {
		this.detailsID = detailsID;
	}
	public String getDetailsGoodsName() {
		return detailsGoodsName;
	}
	public void setDetailsGoodsName(String detailsGoodsName) {
		this.detailsGoodsName = detailsGoodsName;
	}
	public double getDetailsSpec() {
		return detailsSpec;
	}
	public void setDetailsSpec(double detailsSpec) {
		this.detailsSpec = detailsSpec;
	}
	public int getDetailsLastStock() {
		return detailsLastStock;
	}
	public void setDetailsLastStock(int detailsLastStock) {
		this.detailsLastStock = detailsLastStock;
	}
	public int getDetailsInput() {
		return detailsInput;
	}
	public void setDetailsInput(int detailsInput) {
		this.detailsInput = detailsInput;
	}
	public int getDetailsOutput() {
		return detailsOutput;
	}
	public void setDetailsOutput(int detailsOutput) {
		this.detailsOutput = detailsOutput;
	}
	public int getDetailCurrent() {
		return detailCurrent;
	}
	public void setDetailCurrent(int detailCurrent) {
		this.detailCurrent = detailCurrent;
	}
	public Date getDetailsEditTime() {
		return detailsEditTime;
	}
	public void setDetailsEditTime(Date detailsEditTime) {
		this.detailsEditTime = detailsEditTime;
	}
	public int getDetailsIsDel() {
		return detailsIsDel;
	}
	public void setDetailsIsDel(int detailsIsDel) {
		this.detailsIsDel = detailsIsDel;
	}
	@ManyToOne(cascade={CascadeType.ALL})           
    @JoinColumn(name="chkrptID") 	 // VARCHAR(16) 盘点报告编号
	public CheckReport getCheckReport() {
		return checkReport;
	}
	public void setCheckReport(CheckReport checkReport) {
		this.checkReport = checkReport;
	}

}
